<template>
  <BScroll class="BScroll_shop">
    <div class="category-main-shop">
      <div class="category-main-shop-item" v-for="item in shopInfos">
        <a :href="item.link">
          <img :src="item.image" alt="">
          <div>{{item.title}}</div>
        </a>

      </div>
    </div>
  </BScroll>
</template>

<script>
  import BScroll from "../../../components/common/scroll/BScroll";
  export default {
    name: "categoryMainShop",
    components:{
      BScroll,
    },
    props:{
      shopInfos:{
        type:Array,
        default(){
          return[]
        }
      }
    }

  }
</script>

<style scoped>
  .category-main-shop{
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: #d9d9d9;
  }
  .BScroll_shop{
    position: absolute;
    top: 44px;
    left: 96px;
    right: 0;
    bottom: 49px;
    overflow: hidden;
  }
  .category-main-shop-item{
    text-align: center;
    width: 100px;
    margin-top: 10px;
    background-color: white;
    border-radius: 6px ;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .category-main-shop-item img{
    width: 90px;
    height: 90px;
  }
  .category-main-shop-item div{
    font-size: 13px;
    color: black;
    text-decoration: none;
  }
</style>